import request from '@/utils/request'

export function getFuturesList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/futures/getUsableList',
    method: 'post',
    data: query
  })
}   

export function saveFutures(query) {
  return request({
    url: '/knowledge/admin/futures/save',
    method: 'post',
    data: query
  })
}

export function removeFutures(query) {
  return request({
    url: '/knowledge/admin/futures/remove',
    method: 'post',
    data: query
  })
}
export function getFuturesDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/futures/getDetail',
    method: 'post',
    data: query
  })
}